package com.sea.supply.service.impl;


import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.sea.finance.controller.HttpUtils;
import com.sea.supply.entity.Bill;
import com.sea.supply.entity.BillRefused;
import com.sea.supply.mapper.BillMapper;
import com.sea.supply.mapper.BillRefusedMapper;
import com.sea.supply.service.BillRefusedService;
import com.sea.supply.service.BillService;
import org.apache.http.HttpResponse;
import org.apache.http.util.EntityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author 陈鸿飞
 */
@Service
public class BillRefusedServiceImpl implements BillRefusedService {

    @Autowired
    private BillRefusedMapper billRefusedMapper;

    @Override
    public BillRefused findByRefusedPlanNo(String refusedPlanNo) {
        return billRefusedMapper.findByRefusedPlanNo(refusedPlanNo);
    }

    @Override
    public List<BillRefused> findByCreatePlanNo(String refusedPlanNo) {
        return billRefusedMapper.findByCreatePlanNo(refusedPlanNo);
    }

    @Override
    public int save(BillRefused billRefused) {
        return billRefusedMapper.insert(billRefused);
    }

    @Override
    public List<BillRefused> findByCnd(BillRefused billRefused) {
        return billRefusedMapper.findByCnd(billRefused);
    }

    @Override
    public Integer usave(BillRefused billRefused) {
        return billRefusedMapper.update(billRefused);
    }
}
